package com.ll.ptgkanshuprovideruac.service;

import com.ll.ptgkanshuprovideruac.mapper.UserMapper;
import com.ll.ptgkanshuprovideruac.model.domain.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ll
 * @date 2019年09月30日 9:33 PM
 */
@Service
@Transactional
public class UserService {
    @Resource
    private UserMapper userMapper;

    public User getUserById(Long id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
